package com.qf.lw.mapper;

import com.qf.lw.entity.AdminEntity;
import com.qf.lw.pojo.AdminPojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    //管理员登陆//测试
    public AdminPojo login(AdminEntity adminEntity);
    //查询所有用户的信息
    public List<AdminPojo> qureyAdminList(AdminEntity adminEntity);
   //根据用户的用户名和密码，级联查询用户的角色和权限
    public AdminPojo loginQueryAuth(AdminEntity adminEntity);
    //跟据用户的id去查询用户所有的角色和权限
    public  AdminPojo queryAuthById(String aid);
    //批量删除管理员
    public boolean delAdmins(String[] ids);

    public boolean adminAdd(AdminEntity adminEntity);

    public boolean bindRoles(@Param("aid") int aid, @Param("roles") int[] roles);

    public boolean updateAdmin(AdminEntity adminEntity);

    public boolean deteRA(@Param("aid") int aid);
}
